<?php
class Training_HelperController extends Zendvn_Controller_Action{
	
	public function init(){
		
	}
	
	public function indexAction(){
		echo '<br>' . __METHOD__;
		$this->_helper->viewRenderer();
	}
	
	public function index2Action(){
		echo '<br>' . __METHOD__;
		//$this->_helper->viewRenderer();
	}
	
	public function editorAction(){
		echo '<br>' . __METHOD__;
		//$this->_helper->viewRenderer();
	}
	
	public function imgAction(){
		echo '<br>' . __METHOD__;
		$img = Zendvn_File_Image::create(FILE_PATH . '/test/test.jpg');
		$img->resizePercent(50);
		$img->save(FILE_PATH . '/test/abc.jpg');
		$this->_helper->viewRenderer->setNoRender();
	}
}